// app.js
import utils from './utils/utils'
import http from './utils/http'
wx.utils = utils
wx.http = http

App({
  globalData: {},
  // 全局存储保证实时拿到最新数据
  token: wx.getStorageSync('token'),
  refreshToken: wx.getStorageSync('refreshToken'),
  setToken(key, value) {
    this[key] = value
    wx.setStorageSync(key, value)
  },
})
